﻿@model _17bangMVC.Models.MoneyTradeModel
@{
    ViewBag.Title = "Sale";
}
<style>
    .field-validation-error {
        color: red;
        font-size: 12px;
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
    }

        .field-validation-error::before {
            content: '\f119';
        }
</style>

<h2>帮帮币装箱</h2>
<br />

@using (Html.BeginForm())
{
    <div class="alert alert-warning" style="display:block;border: 1px dashed">
        <p>系统要求的最低出售门槛为： 50 枚</p>
        <p>目前，你的帮帮币： </p>
        <table class="table">
            <tbody>
                <tr>
                    <th>结余：</th>
                    <td>1731 枚</td>
                </tr>
                <tr>
                    <th>可出售：</th>
                    <td>1681 枚</td>
                </tr>
            </tbody>
        </table>
    </div>
    <label><b>购买人：（必填）</b></label>
    @Html.TextBoxFor(m => m.Buyer, new
{
    @class = "form-control",
    placeholder = "他的用户名，模糊查询只能从头开始"
});
    @Html.ValidationMessageFor(m => m.Buyer)
    <br />
    <label><b>出售数量：（* 必填）</b></label>
    <br />
    <span class="input-group-text">$</span>
    @Html.TextBoxFor(m => m.Amount, new
{
    @class = "form-control",
    placeholder = "大于0的正整数"
});
    <span class="input-group-text">枚</span>
    @Html.ValidationMessageFor(m => m.Amount)
    <br />
    <label><b>成交总价：（* 必填，指导单价：20元/枚）</b></label>
    <br />
    <span class="input-group-text">￥</span>
    @Html.TextBoxFor(m => m.Price, new
{
    @class = "form-control",
    placeholder = "不小于0的正整数"
});
    <span class="input-group-text">元</span>
    @Html.ValidationMessageFor(m => m.Price)
    <br />
    <label><b>留言:</b></label>
    @Html.TextAreaFor(m => m.SelfDescription, new
{
    @class = "form-control",
    placeholder = "一些需要特别说明的事项"
});
    <button type="submit" class="btn btn-primary">提交</button>
    <button type="submit" class="btn btn-light">重置</button>
}

